package org.goyo.main.services.system.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.goyo.common.exception.DBException;
import org.goyo.common.exception.ServiceException;
import org.goyo.common.utils.Pager;
import org.goyo.main.domain.dao.system.ISysRoleResourceDao;
import org.goyo.main.domain.entity.system.SysRoleResource;
import org.goyo.main.services.system.ISysRoleResourceService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional
public class SysRoleResourceServiceImpl implements ISysRoleResourceService{

	@Resource
	private ISysRoleResourceDao sysRoleResourceDao;
	@Override
	public Pager<SysRoleResource> findByCondition(Map<String, Object> cond,
			Pager pager) throws DBException, ServiceException {
		List<SysRoleResource> list = sysRoleResourceDao.findByCond(cond, null);
		pager.setList(list);
		return pager;
	}

}
